#include <ncurses.h>

#define BUF_LEN 30 // starting buffer length

// class to parse, store, and dispatch commands
class cmd_parser {
	char * cmd_buf;
	unsigned len;
	unsigned wr_index;

	private:
		void buf_realloc (); // increases buffer size
		void cmd_dispatch (); // code, filename

	public:
		cmd_parser ();
		~cmd_parser ();
		void cmd_getch (); // read 1 char, put into buf. If 'Enter' dispatch
};

